﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="App.xaml.cs" company="GT">
//   Gunther Taborga
// </copyright>
// <summary>
//   Interaction logic for App.xaml
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace BatchID3.Editor
{
    using System.Windows;

    using BatchID3.Editor.Ioc;
    using BatchID3.Ioc;

    using Ninject;

    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            var ioc = this.InjectDependencies();

            var mainWindow = ioc.Get<IWindow>();
            mainWindow.Show();

            base.OnStartup(e);
        }

        private StandardKernel InjectDependencies()
        {
            return new StandardKernel(new Editor(), new Core());
        }
    }
}
